<div id="header">
    <div id="tools">
        <span>样式▼
            <ul class="dropdraw">
                <li>
                    <a href="index.php?type=preview">预览</a>
                </li>
                <li>
                    <a href="index.php?type=small">缩略图</a>
                </li>
                <li>
                    <a href="index.php?type=list">列表</a>
                </li>
            </ul>
        </span>
        <span><a onclick="showFrame('?a=frame&m=add')">添加</a></span>
    </div>
    <div id="login">
        {if $_SESSION['user']['login']==true}<b>{$_SESSION['user']['id']}</b>{else}
        <form action="index.php?a=user&m=login&url={echo urlencode($_SERVER['REQUEST_URI'])}">
            用户名<input type="text" name="name" size="15">密码<input type="password" name="password" size="15"><input type="button" name="login" value="登录">
        </form>{/if}
    </div>&nbsp;
</div>